﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Channels.Models.Channel>" %>
<div id="channel<%=this.Model.Id%>">
        <div class="c-row" id="<%= this.Model.Id %>">
            <table cellpadding="2" cellspacing="3">
                <tr>
                    <% foreach (var c in this.Model.ChannelItems) { %>
                    <td>
                        <div class="c-item"><span class="c-item-head"><a href=<%=string.Format("Channel/Link/?url={0}", c.Link.ToString()) %>><%=c.Title %></a> </span><br />
                            <%=c.Desc %><br />
                            
                            <img src="../../images/playlist.png" /></div>
                    </td>
                    <%} %></tr>
            </table>
        </div>
        <div style="width: 80%; text-align: center">
            <img src="../../images/left.png" onclick="right(<%= this.Model.Id %>);"/>&nbsp;&nbsp;&nbsp;&nbsp;<img src="../../images/right.png" onclick="left(<%=this.Model.Id %>);"/></div>
    </div>